<?php
  echo $form->create('Upload', array('url'=>array('plugin'=>'gallery','controller'=>'gallery','action'=>'add'),'type' => 'file'));
   echo $form->input('Gallery.name',array('label'=>__('opis zdjęcia',true),'style'=>'width: 350px;'));
  echo $form->hidden('Gallery.category_id');
  echo $form->input('Upload.0.file', array('type' => 'file'));
  echo $form->end('Save');
?>